package com.lenovo.agricultureServer.bean;

public class Component 
{
	private String name = "";
	private byte[] addr = null;
	private int subDev = 0; //子设备,用在两个以上设备共用一个地址的情况
	public Component(String name, int subDev)
	{
		this.name = name;
		this.subDev = subDev;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public byte[] getAddr() {
		return addr;
	}
	public void setAddr(byte[] addr) {
		this.addr = addr;
	}
	public int getSubDev() {
		return subDev;
	}
	public void setSubDev(int subDev) {
		this.subDev = subDev;
	}
}
